package cc.fs.zhihuapp.ui.activity.demo;

import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.Button;

import cc.fs.zhihuapp.R;
import cc.fs.zhihuapp.ui.activity.helper.BaseActivity;
import cc.fs.zhihuapp.ui.view.FavorLayout;

/**
 * Created by fostion on 12/29/15.
 */
public class Like17Activity extends BaseActivity {

    Button btn;
    FavorLayout favorLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_like17);

        btn = (Button) findViewById(R.id.btn);
        favorLayout = (FavorLayout)findViewById(R.id.favorLayout);

        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                favorLayout.addFavor();
            }
        });

    }

    @Override
    public void handler(Message msg) {

    }
}
